From 35c865110a8a8a7981ad5184c02ab06923495b33 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 4 Sep 2009 08:34:45 +0100 Subject: [PATCH] xend: fix domain_migrate When the guest(pv-on-hvm guest that cannot suspend) reboot in LiveMigration, the disconnecting of src-side is not transmitted to dist-side. As a result, the error processing on the dist side is not executed. Signed-off-by: Tomonari Horikoshi Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index 520b881ee3..a8ac317422 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -1353,7 +1353,7 @@ class XendDomain: XendCheckpoint.save(p2cwrite, dominfo, True, live, dst, node=node) finally: - sock.shutdown() + sock.shutdown(2) sock.close() os.close(p2cread) @@ -1379,6 +1379,7 @@ class XendDomain: XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst, node=node) finally: + sock.shutdown(2) sock.close() def domain_save(self, domid, dst, checkpoint=False): -- 2.30.2